package Test;

public class handlerTest extends Thread{

	private int delay;
	private String message;
	
	handlerTest(String m , int r ){
		message = m;
		delay = r;
	}
	public void run(){
		try{
			for(int i = 0; i < 10; i++)
			{
				System.out.println(message);
				Thread.sleep(delay);//******
			}
		}catch(InterruptedException e){
			return;
		}
	}
	public static void main(String args[]){
		handlerTest t1 = new handlerTest("A",1000);
		handlerTest t2 = new handlerTest("B",1000);
		handlerTest t3 = new handlerTest("C",1000);
		handlerTest t4 = new handlerTest("D",1000);
		handlerTest t5 = new handlerTest("E",1000);
		
		t1.start();
		t2.start();
		t3.start();
		t4.start();
		t5.start();
	}
}
